package mapstruct.mapper;

import com.pro.common.api.depencies.config.CommonMappingConfig;
import mapstruct.CommonMappingConfig2;
import mapstruct.model.ProductDTO;
import mapstruct.model.ProductEntity;
import org.mapstruct.InheritConfiguration;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring", config = CommonMappingConfig2.class)
public interface ProductMapper {

    @InheritConfiguration(name = "mapIgnoreBase")
    ProductEntity toEntity(ProductDTO dto);
}
